/*
 * <p>Copyright® 2009-2022 东软 IT 实训中心版权所有。</p>
 */

package com.max.back.doctor.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.max.back.doctor.dao.DrugDao;
import com.max.back.doctor.service.DrugService;
import com.max.back.entity.Drug;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author 辛凤文 forward.seen@foxmail.com
 * @version 1.0
 * @description <p>
 * <code>DrugServiceImpl</code>
 *
 * </p>
 * @time 2022/7/26 21:56
 * @see
 */
@Service("/doctorDrugServiceImpl")
public class DrugServiceImpl extends ServiceImpl<DrugDao, Drug> implements DrugService {

    @Autowired
    private DrugDao drugDao;

    @Override
    public List<Map<String, Object>> getDrugsBySearchContent(String keyword) {
        List<Map<String, Object>> searchResults =
                drugDao.selectDrugMaps(keyword);
        return searchResults;
    }
}